﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Tour.BLL;
using Tour.DAL;


public partial class Tourist_EventDetail : System.Web.UI.Page
{
    public string TextId { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        GetPropertyFromQueryString();
        if (!IsPostBack)
        {
            GetPropertyFromQueryString();
            LoadData();
            LoadEventTypeName();
        }
    }
    void GetPropertyFromQueryString()
    {
        if (Request["TextId"] != null)
            TextId = CommonHelper.QueryString("TextId");
        else
            TextId = null;
    }
    void LoadData()
    {
        //int TotalRow = 0;
        rpt.DataSource = TblEventManager.CreateInstant().SelectTblEventBy(null, null, TextId, true, "", "");
        rpt.DataBind();
    }
    void LoadEventTypeName()
    {
        //int TotalRow = 0;
        rptEventTypeName.DataSource = TblEventManager.CreateInstant().SelectTblEventBy(null, null, TextId, true, "", "");
        rptEventTypeName.DataBind();
    }
}